/* for (let i = 1; i <= 100; i += 2) {
  console.log(i);
} */

const arr = [2, 33, 54, 2, 23, 54];
console.log(arr.filter((v) => v % 2 === 1));

const ret = arr.reduce((pre, cur) => {
  if (cur % 2 === 1) {
    pre.push(cur);
  }
  return pre;
}, []);

console.log(ret);
